package com.dailyblue.java.spring.project.smbms.commons.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dailyblue.java.spring.project.smbms.commons.bean.Users;
import com.dailyblue.java.spring.project.smbms.commons.config.JsonResult;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface UsersService extends IService<Users> {

    JsonResult<String> login(Users user);

    JsonResult<PageInfo<Users>> findAllUsers(int page);

    JsonResult<PageInfo<Users>> delete(QueryWrapper<Users> wrapper, int page);
    JsonResult<PageInfo<Users>> delete(int page);

    JsonResult<PageInfo<Users>> findUserByNameAndRoleName(String name, Integer role, Integer page);
}
